package com.CTAtracker.android.Models;

import com.google.android.gms.maps.model.LatLng;


/**
 * Model of the Station
 */
public class Station {
	/**
	 * The Id of the station 
	 */
	private int stationId;
	/**
	 * The name of the station
	 */
	private String _name;
	/**
	 * The Id of the stop
	 */
	private int _stop_id;
	/**
	 * The name of the station
	 */
	private String _stop_name;
	/**
	 * The direction of the stop
	 */
	private String _direction;
	/**
	 * the ADA of the station
	 */
	private int _ADA; 
	/**
	 * The parent id of the stop
	 */
	private int _parent_stop_id;
	/**
	 * The Id of the line of the station
	 */
	private int _line_id;
	/**
	 * The position of the station
	 */
	private Position _position;
	/**
	 * The color of the station
	 */
	private ColorStation _color;

	public Station(String name, Position p, ColorStation color) {
		_name = name;
		_position = p;
		_color = color;
	}

	public Station() {

	}
	
	public Station(Station s) {
		stationId = s.getStationId();
		_name = s.get_name();
		
		_ADA = s.get_ADA(); 
		_parent_stop_id = s.get_parent_stop_id();
		_line_id = s.get_line_id();
		_position = s.get_position();
		_color = s.get_color();
		_direction = null;
		_stop_id = 0;
		_stop_name = null;

	}

	/**
	 * Get the API value of the color "Red, Blue, Brn, G, Org, Pink, P, Y"
	 * @return a new String with the color
	 */
	public String getColorAPI(){
		return _color.getColorAPI();
	}

	public int getStationId() {
		return stationId;
	}

	public void setStationId(int stationId) {
		this.stationId = stationId;
	}

	public ColorStation get_color() {
		return _color;
	}

	public void set_color(ColorStation _color) {
		this._color = _color;
	}

	public Position get_position() {
		return _position;
	}

	public void set_position(Position _position) {
		this._position = _position;
	}

	public String get_name() {
		return _name;
	}

	public void set_name(String _name) {
		this._name = _name;
	}

	public int get_stop_id() {
		return _stop_id;
	}

	public void set_stop_id(int _stop_id) {
		this._stop_id = _stop_id;
	}

	public String get_stop_name() {
		return _stop_name;
	}

	public void set_stop_name(String _stop_name) {
		this._stop_name = _stop_name;
	}

	public String get_direction() {
		return _direction;
	}

	public void set_direction(String _direction) {
		this._direction = _direction;
	}

	public int get_ADA() {
		return _ADA;
	}

	public void set_ADA(int _ADA) {
		this._ADA = _ADA;
	}

	public int get_parent_stop_id() {
		return _parent_stop_id;
	}

	public void set_parent_stop_id(int _parent_stop_id) {
		this._parent_stop_id = _parent_stop_id;
	}

	public int get_line_id() {
		return _line_id;
	}

	public void set_line_id(int _line_id) {
		this._line_id = _line_id;
	}

	public LatLng getLatLng() {
		return new LatLng(_position.get_latitude(), _position.get_longitude());
	}
}
